package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 用户实体类
 */
@TableName("t_user")
public class UserBean {
    /**用户id*/
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private Integer userId;
    /**用户名*/
    @TableField("u_userName")
    private String userName;
    /**真实名字*/
    @TableField("u_realName")
    private String realName;
    /**用户密码*/
    @TableField("u_pwd")
    private String pwd="123";
    /**用户等级*/
    @TableField("u_grade")
    private String grade;

    public UserBean() {
    }

    public UserBean(String userName, String realName, String grade) {
        this.userName = userName;
        this.realName = realName;
        this.grade = grade;
    }

    public UserBean(String userName, String realName, String pwd, String grade) {
        this.userName = userName;
        this.realName = realName;
        this.pwd = pwd;
        this.grade = grade;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", realName='" + realName + '\'' +
                ", pwd='" + pwd + '\'' +
                ", grade='" + grade + '\'' +
                '}'+"\n";
    }
}
